package com.hl.client2.controller;

import com.hl.client2.feignService.FeignService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.PathVariable;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class helloController {
    private Logger logger = LoggerFactory.getLogger(helloController.class);
    @Autowired
    FeignService feignService;

    @Value("${server.port}")
    String port;

    @RequestMapping("/hello/{name}")
    public String index(@PathVariable String name) {
        logger.info("host:" + port);
        return  "231";
    }
}
